﻿using Base.Common;
using BQ.WCS.Client;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 namespace Base.ClientUI {
    /**
   *┌────────────────────────────────────────────────┐
   *│　描    述：LoginFormData                                                    
   *│　作    者：sgj                                              
   *│　版    本：1.0                                              
   *│　创建时间：2021/4/21 13:57:37                        
   *└────────────────────────────────────────────────┘
   **/
   public class LoginFormData :Form{
        public void login(string uname ,string pwd) {
              HttpSysUtil.pass = pwd;
            List<string> resList = HttpSysUtil.login(uname ,BaseUtil.MD5Encrypt(pwd));
            /*if( resList == null ) {
                MessageBox.Show("网络异常" ,"提示" ,MessageBoxButtons.OK ,MessageBoxIcon.Asterisk);
                return;
            }
            if( resList[0] != "0" ) {
                MessageBox.Show(resList[0] ,"提示" ,MessageBoxButtons.OK ,MessageBoxIcon.Asterisk);
                return;
            }*/
            LoginUserInfo.IsLogin = true;
            LoginUserInfo.UserName = uname;
            
            Hide();
          
        }
     }
}
